package kr.nextree.edu.rcp.opendic;

import kr.nextree.edu.rcp.opendic.views.WordBookInputView;
import kr.nextree.edu.rcp.opendic.views.WordBookView;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class Perspective implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false);
		layout.setFixed(true);

		layout.addView(WordBookInputView.ID, IPageLayout.TOP, 0.11f, editorArea);

		layout.addView(WordBookView.ID, IPageLayout.BOTTOM, 0.88f, editorArea);

		layout.addShowViewShortcut(WordBookInputView.ID);
		layout.addShowViewShortcut(WordBookView.ID);

		// layout.addView(WordBookInputView.ID + ":1", IPageLayout.BOTTOM,
		// 0.88f,
		// editorArea);
		// layout.addView(WordBookInputView.ID + ":2", IPageLayout.BOTTOM,
		// 0.88f,
		// editorArea);
		// layout.addView(WordBookInputView.ID + ":3", IPageLayout.BOTTOM,
		// 0.88f,
		// editorArea);
	}
}
